package main

func rowAndMaximumOnes(mat [][]int) []int {
	maxIndex := 0
	maxCount := 0
	for i, row := range mat {
		cnt := 0
		for _, v := range row {
			if v == 1 {
				cnt++
			}
		}
		if cnt > maxCount {
			maxCount = cnt
			maxIndex = i
		}
	}
	return []int{maxIndex, maxCount}
}